import request from '@/utils/request'

/**
 * 查询数据
 * return promise
 */
export const list = searchPage => {
  return request({
    url: '/auth/page',
    method: 'POST',
    data: searchPage
  })
}

export const listTable = () => {
  return request({
    url: '/auth/all',
    method: 'GET'
  })
}
